
app.controller("ctrl1",["$scope","$http","$timeout",function($scope,$http,$timeout){
	$http.get("http://h5.yztctech.net/api/axf/apihome.php")
	.success(function(data){
//      console.log(data.data.menu[0].activity);
        $scope.data=data.data.menu;
        console.log(data.data.slide);
        $scope.laohu=data.data.slide;
        $timeout(function(){
        	 var swiper = new Swiper('.swiper-container', {
	        pagination: '.swiper-pagination',
	        nextButton: '.swiper-button-next',
	        prevButton: '.swiper-button-prev',
	        paginationClickable: true,
	        spaceBetween: 30,
	        centeredSlides: true,
	        autoplay: 2500,
	        autoplayDisableOnInteraction: false
	        });
        },1);
       
       
       
       
	});
	$http.get("http://h5.yztctech.net/api/axf/apihomehot.php")
	.success(function(data){
//      console.log(data.data[0]);
        $scope.homehot=data.data;
	});
	
}]);